export default {
    jump(jump_type, jump_link = 0) {
        console.info(jump_type + ' --- ' + jump_link);
        if (jump_type == '') {
            console.info(jump_type);
            return;
        }
        if (jump_type == 'return_one') {
            uni.navigateBack({
                delta: 1
            });
        }
        if (jump_type == 'appoint_view') {
            uni.navigateTo({
                url: jump_link
            });
        }
        if (jump_type == 'index') { //首页
            uni.switchTab({
                url: '/pages/index/index'
            });
        }
        if (jump_type == 'cart') { //购物车
            uni.switchTab({
                url: '/pages/store/shoppingCart'
            });
        }
        if (jump_type == 'product_detail') { 
            uni.navigateTo({
                url: '/pages/store/productDetail?storeType=2&id='+jump_link
            });
        }
        if (jump_type == 'my') { //个人中心
            uni.switchTab({
                url: '/pages/my/my'
            });
        }
        if (jump_type == 'special') { //个人中心
            uni.switchTab({
                url: '/pages/store/special'
            });
        }
        if(jump_type == "login") { //登录
        	uni.navigateTo({
        	    url: '/pages/my/login'
        	});
        }
        if(jump_type == "vip") { //vip
        	uni.navigateTo({
        	    url: '/pages/my/vip'
        	});
        }
        if(jump_type == "levelInfo") { //等级中心
        	uni.navigateTo({
        	    url: '/pages/my/levelInfo'
        	});
        }
        if(jump_type == "gift") { //我的赠品
        	uni.navigateTo({
        	    url: '/pages/my/gift'
        	});
        }
        if(jump_type == "gift_log") { //我的赠品
        	uni.navigateTo({
        	    url: '/pages/my/giftLog?id='+jump_link
        	});
        }
        if(jump_type == "common_columb") { //栏目页
        	uni.navigateTo({
        	    url: '/pages/common/columb?'+jump_link
        	});
        }
        if(jump_type == "search") { //栏目页
        	uni.navigateTo({
        	    url: '/pages/index/search?'+jump_link
        	});
        }
        if(jump_type == "product_list") { //商品列表页
        	uni.navigateTo({
        	    url: '/pages/store/productList?'+jump_link
        	});
        }
        if(jump_type == 'online_recharge') { //线上充值
            uni.navigateTo({
        	    url: '/pages/my/onlineRecharge'
            });
        }
        if(jump_type == 'credits_list') { //资产日志
            uni.navigateTo({
        	    url: '/pages/my/creditsList?type='+jump_link
            });
        }
        if(jump_type == 'account_more') { //资产列表
            uni.navigateTo({
        	    url: '/pages/my/accontMore'
            });
        }
        if(jump_type == 'invite') { //邀请中心
            uni.navigateTo({
        	    url: '/pages/my/invite'
            });
        }
        if(jump_type == 'invitation_list') { //我的邀请
            uni.navigateTo({
        	    url: '/pages/my/inviteFriends'
            });
        }
        if(jump_type == 'collect') { //收藏
            uni.navigateTo({
                url: '/pages/my/collect'
            });
        }
        if(jump_type == 'address') { //收货地址
            uni.navigateTo({
                url: '/pages/my/address?'+jump_link
            });
        }
        if(jump_type == 'addOreditAddress') { //新增或修改收货地址
            uni.navigateTo({
                url: '/pages/my/newAddress?'+jump_link
            });
        }
        if(jump_type == 'my_store') { //我的云仓
            uni.navigateTo({
                url: '/pages/my/myStore?'+jump_link
            });
        }
        if(jump_type == 'addOrder') { //提交订单
            uni.navigateTo({
                url: '/pages/store/confirmOrder?'+jump_link
            });
        }
        if (jump_type == 'agreement') { //协议
            uni.navigateTo({
                url: '/pages/common/agreement?type=' + jump_link
            });
        }
        if(jump_type == 'czvLog') { //批发商品详情
            uni.navigateTo({
                url: '/pages/common/czvLog?'+jump_link
            });
        }
        if (jump_type == 'my_order_list') { //我的订单
            uni.navigateTo({
                url: '/pages/my/orderList?' + jump_link
            });
        }
        if (jump_type == 'order_view') { //我的订单
            uni.navigateTo({
                url: '/pages/my/orderView?id=' + jump_link
            });
        }
        if (jump_type == 'increase') { //转赠/转入余额
            uni.navigateTo({
                url: '/pages/my/increase?' + jump_link
            });
        }
        if (jump_type == 'withdraw') { //业绩提现
            uni.navigateTo({
                url: '/pages/my/withdraw?' + jump_link
            });
        }
        if (jump_type == 'withdraw_list') { //业绩提现列表
            uni.navigateTo({
                url: '/pages/my/withdrawDetails?' + jump_link
            });
        }
        if (jump_type == 'user_info') { //业绩详情
            uni.navigateTo({
                url: '/pages/my/personalData?' + jump_link
            });
        }
        if (jump_type == 'czv') { //业绩详情
            uni.navigateTo({
                url: '/pages/common/czv?' + jump_link
            });
        }
        if (jump_type == 'merchant_list') { //商家列表
            uni.switchTab({
                url: '/pages/merchant/list'
            });
        }
        if (jump_type == 'merchant_view') { //商家详情
            uni.navigateTo({
                url: '/pages/merchant/view?id=' + jump_link
            });
        }
        if (jump_type == 'merchant_evaluate_list') { //商家评价列表
            uni.navigateTo({
                url: '/pages/merchant/evaluateList?id=' + jump_link
            });
        }
        if (jump_type == 'merchant_add_evaluate') { //商家添加评价
            uni.navigateTo({
                url: '/pages/merchant/addEvaluate?id=' + jump_link
            });
        }
        if (jump_type == 'recommend') { //我的推荐
            uni.navigateTo({
                url: '/pages/my/recommend'
            });
        }
        if (jump_type == 'inner_list') { //商家详情
            uni.navigateTo({
                url: '/merchant/list'
            });
        }
        if (jump_type == 'inner_detail') { //商家详情
            uni.navigateTo({
                url: '/merchant/detail?id='+jump_link
            });
        }
        if (jump_type == 'merchantOnline') { //商家在线充值
            uni.navigateTo({
                url: '/merchant/onlineRecharge?'+jump_link
            });
        }
        if (jump_type == 'merchantMoneyList') { //商家资产列表
            uni.navigateTo({
                url: '/merchant/moneyList?'+jump_link
            });
        }
        if (jump_type == 'merchantMoneyLog') { //商家资产日志
            uni.navigateTo({
                url: '/merchant/moneyLog?'+jump_link
            });
        }
        if (jump_type == 'merchantShopInfo') { //商家详情
            uni.navigateTo({
                url: '/merchant/shopInfo?'+jump_link
            });
        }
        
        if(jump_type == 'storeThree') { //品鉴云仓
            uni.navigateTo({
                url: '/pages/store/storeThreeList'
            });
        }
        if(jump_type == 'storeThreeView') { //品鉴云仓商品详情
            uni.navigateTo({
                url: '/pages/store/storeThreeView?id='+jump_link
            });
        }
        if(jump_type == 'storeOne') { //臻品云仓
            uni.navigateTo({
                url: '/pages/store/storeOneList'
            });
        }
        if(jump_type == 'storeOneView') { //臻品云仓商品详情
            uni.navigateTo({
                url: '/pages/store/storeOneView?id='+jump_link
            });
        }
        if(jump_type == 'storeBatch') { //批发商城
            uni.navigateTo({
                url: '/pages/store/storeBatchList'
            });
        }
        if(jump_type == 'storeBatchView') { //批发商品详情
            uni.navigateTo({
                url: '/pages/store/storeBatchView?id='+jump_link
            });
        }
    }
};
